<%@ Page Language="vb" AutoEventWireup="false" Codebehind="ViewAllCommittee.aspx.vb" Inherits="Secure.ViewAllCommittee" smartNavigation="True"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
	<head>
		<title>ViewAllCommittee</title>
		<meta name="vs_defaultClientScript" content="JavaScript" />
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
		<link href="Styles.css" type="text/css" rel="stylesheet" />
	</head>
	<body >
		<form id="Form1" method="post" runat="server">
			<!-- #Include File="Header.aspx" -->
			<h1>Viewing All Committee Members</h1>			
			<asp:Label ID="lbl1" Runat="server">
				<h3>This Form Allows you to:</h3>
			</asp:Label><br />
			<asp:Label ID="Label1" Runat="server">Change Committee Member Details</asp:Label><br />
			<ul>
			<li>Members are ordered by Last Name</li>
			<li><strong>DO NOT FORMAT PHONE NUMBERS PLEASE</strong></li>
			</ul>
			<hr />
		
			<asp:datalist width="100%" id="dlstCommittee" Runat="Server" onEditCommand="dlstCommittee_EditCommand"
				onCancelCommand="dlstCommittee_CancelCommand" onUpdateCommand="dlstCommittee_UpdateCommand"
				ItemStyle-CssClass="DataRow1" AlternatingItemStyle-CssClass="DataRow2">
				<ItemTemplate>
					<table id="tblAppointment" width="100%" border="0">
						<tr>
							<td width="30%">&nbsp;</td>
							<td align="center" width="30%">
							</td>
						</tr>
						<tr>
							<td><a name="<%# Container.DataItem( "ID" )%>" /><br />
							</td>
						</tr>
						<tr>
							<td align="right">First Name:</td>
							<td>
								<%# Container.DataItem( "FirstName" )%>
							</td>
							<td>Last Name: 
								<%# Container.DataItem( "LastName" )%>
							</td>
						
						</tr>
						<tr>
							<td align="right">Phone Home:</td>
							<td>
								<%# Container.DataItem( "Phone_Home" )%>
							</td>
							<td>Phone Work:
								<%# Container.DataItem( "Phone_Work" )%>
							</td>
						</tr>
						<tr>
							<td align="right">Fax Home:</td>
							<td>
								<%# Container.DataItem( "Fax_Home" )%>
							</td>
							<td>Fax Work:
								<%# Container.DataItem( "Fax_Work" )%>
							</td>
						</tr>
						<tr>
							<td align="right">Email Address:</td>
								<td><%# Container.DataItem( "Email" )%>
							</td>
						</tr>
						<tr>
							<td><br />
							</td>
						</tr>
						<tr>
							<td align="right">Address 1:</td>
							<td>
								<%# Container.DataItem( "Address_1" )%>
							</td>
						</tr>
						<tr>
							<td align="right">Address 2:</td>
							<td>
								<%# Container.DataItem( "Address_2" )%>
							</td>
						</tr>
						<tr>
							<td align="right">City:</td>
							<td>
								<%# Container.DataItem( "City" )%>
							</td>
							<td>Province:
								<%# Container.DataItem( "Province" )%>
							</td>
						</tr>
						<tr>
							<td></td>
							<td>Postal Code:
								<%# Container.DataItem( "Postal_Code" )%>
							</td>
						</tr>	
						<tr><td><br /></td></tr>					
						<tr>
							<td></td>
							<td>
								<asp:LinkButton text="Edit Record" CommandName="Edit" Runat="server" ID="Linkbutton1"></asp:LinkButton>
							</td>
						</tr>
					</table>
				</ItemTemplate>
				<EditItemTemplate>
					<table id="EditItem" width="100%" border="0">
						<tr>
							<td width="30%">&nbsp;</td>
							<td width="30%"></td>
							<td width="60%"></td>
						</tr>
						<tr>
							<td></td>
							<td colspan="2"><h3>Editting Record for
									<%# Container.DataItem( "FirstName" )%> <%# Container.DataItem( "LastName" )%>
								</h3>
							</td>
						</tr>
						<tr>
							<td align="right">First Name:</td>
							<td>
								<asp:TextBox runat="server" ID="EditFirstName" Text='<%# Container.DataItem( "FirstName" )%>'/>
							</td>
							<td>Last Name: 
								<asp:TextBox runat="server" ID="EditLastName" Text='<%# Container.DataItem( "LastName" )%>'/>
							</td>
							<td align="right"></td>
							<td>
								<asp:TextBox runat="server" ID="editNameID" Text='<%# Container.DataItem( "Id" )%>' Enabled=False Visible=false />
							</td>
						</tr>
						<tr>
							<td align="right">Phone Home:</td>
							<td>
								<asp:TextBox runat="server" ID="editphonehome" Text='<%# Container.DataItem( "Phone_home" )%>'/>
							</td>
							<td>Phone Work:
								<asp:TextBox runat="server" ID="editphonework" Text='<%# Container.DataItem( "Phone_work" )%>'/>
							</td>
						</tr>
						<tr>
							<td align="right">Fax Home:</td>
							<td>
								<asp:TextBox runat="server" ID="editfaxhome" Text='<%# Container.DataItem( "Fax_Home" )%>' />
							</td>
							<td>Fax Work:
								<asp:TextBox runat="server" ID="editfaxwork" Text='<%# Container.DataItem( "Fax_Work" )%>' />
							</td>
						</tr>
						<tr>
							<td align="right">Email Address:</td>
							<td colspan="2">
								<asp:TextBox runat="server" ID="editemail" Text='<%# Container.DataItem( "Email" )%>' />
							</td>
						</tr>
						<tr>
							<td><br />
							</td>
						</tr>
						<tr>
							<td align="right">Address 1:</td>
							<td colspan="2">
								<asp:TextBox runat="server" ID="editaddress1" Text='<%# Container.DataItem( "Address_1" )%>' />
							</td>
						</tr>
						<tr>
							<td align="right">Address 2:</td>
							<td colspan="2">
								<asp:TextBox runat="server" ID="editaddress2" Text='<%# Container.DataItem( "Address_2" )%>' />
							</td>
						</tr>
						<tr>
							<td align="right">City:</td>
							<td>
								<asp:TextBox runat="server" ID="editcity" Text='<%# Container.DataItem( "City" )%>' />
							</td>
							<td>Province:
								<asp:TextBox runat="server" id="editprovince" Text='<%# Container.DataItem( "Province" )%>' />
							</td>
						</tr>
						<tr>							
							<td align="right">Postal Code:</td>
							<td colspan="2">
								<asp:TextBox runat="server" id="editpostalcode" Text='<%# Container.DataItem( "Postal_Code" )%>' />
							</td>
						</tr>						
						<tr>
							<td></td>
							<td>
								<asp:LinkButton text="Save Record" CommandName="Update" Runat="server" ID="SaveUpdate" />
							</td>
							<td>
								<asp:LinkButton text="Cancel Update" CommandName="Cancel" Runat="server" ID="CancelUpdate" />
							</td>
						</tr>
						<tr>
							<td>
							</td>
						</tr>
						<tr>
							<td>&nbsp;</td>
							<td>
							</td>
						</tr>
					</table>
				</EditItemTemplate>
				</asp:datalist>
		</form>
	</body>
</html>
